home *** CD-ROM | disk | FTP | other *** search
/ EuroCD 3 / EuroCD 3.iso / Programming / SecalDemo / Inc / intuition / gadgetclass.inc < prev    next >
Text File  |  1998-06-24  |  4KB  |  163 lines

  1. include "inc/exec/types.inc";
  2. include "inc/intuition/intuition.inc";
  3. include "inc/utility/tagitem.inc";
  4.  
  5. def GA_Dummy = (TAG_USER+$30000);
  6.  
  7. def GA_Left = (GA_Dummy+$0001);
  8. def GA_RelRight = (GA_Dummy+$0002);
  9. def GA_Top = (GA_Dummy+$0003);
  10. def GA_RelBottom = (GA_Dummy+$0004);
  11. def GA_Width = (GA_Dummy+$0005);
  12. def GA_RelWidth = (GA_Dummy+$0006);
  13. def GA_Height = (GA_Dummy+$0007);
  14. def GA_RelHeight = (GA_Dummy+$0008);
  15. def GA_Text = (GA_Dummy+$0009);
  16. def GA_Image = (GA_Dummy+$000a);
  17. def GA_Border = (GA_Dummy+$000b);
  18. def GA_SelectRender = (GA_Dummy+$000c);
  19. def GA_Highlight = (GA_Dummy+$000d);
  20. def GA_Disabled = (GA_Dummy+$000e);
  21. def GA_GZZGadget = (GA_Dummy+$000f);
  22. def GA_ID = (GA_Dummy+$0010);
  23. def GA_UserData = (GA_Dummy+$0011);
  24. def GA_SpecialInfo = (GA_Dummy+$0012);
  25. def GA_Selected = (GA_Dummy+$0013);
  26. def GA_EndGadget = (GA_Dummy+$0014);
  27. def GA_Immediate = (GA_Dummy+$0015);
  28. def GA_RelVerify = (GA_Dummy+$0016);
  29. def GA_FollowMouse = (GA_Dummy+$0017);
  30. def GA_RightBorder = (GA_Dummy+$0018);
  31. def GA_LeftBorder = (GA_Dummy+$0019);
  32. def GA_TopBorder = (GA_Dummy+$001a);
  33. def GA_BottomBorder = (GA_Dummy+$001b);
  34. def GA_ToggleSelect = (GA_Dummy+$001c);
  35. def GA_SysGadget = (GA_Dummy+$001d);
  36. def GA_SysGType = (GA_Dummy+$001e);
  37. def GA_Previous = (GA_Dummy+$001f);
  38. def GA_Next = (GA_Dummy+$0020);
  39. def GA_DrawInfo = (GA_Dummy+$0021);
  40. def GA_IntuiText = (GA_Dummy+$0022);
  41. def GA_LabelImage = (GA_Dummy+$0023);
  42. def GA_TabCycle = (GA_Dummy+$0024);
  43. def GA_GadgetHelp = (GA_Dummy+$0025);
  44. def GA_Bounds = (GA_Dummy+$0026);
  45. def GA_RelSpecial = (GA_Dummy+$0027);
  46.  
  47. def PGA_Dummy = (TAG_USER+$31000);
  48.  
  49. def PGA_Freedom = (PGA_Dummy+$0001);
  50. def PGA_Borderless = (PGA_Dummy+$0002);
  51. def PGA_HorizPot = (PGA_Dummy+$0003);
  52. def PGA_HorizBody = (PGA_Dummy+$0004);
  53. def PGA_VertPot = (PGA_Dummy+$0005);
  54. def PGA_VertBody = (PGA_Dummy+$0006);
  55. def PGA_Total = (PGA_Dummy+$0007);
  56. def PGA_Visible = (PGA_Dummy+$0008);
  57. def PGA_Top = (PGA_Dummy+$0009);
  58. def PGA_NewLook = (PGA_Dummy+$000a);
  59.  
  60. def STRINGA_Dummy = (TAG_USER+$32000);
  61. def STRINGA_MaxChars = (STRINGA_Dummy+$0001);
  62. def STRINGA_Buffer = (STRINGA_Dummy+$0002);
  63. def STRINGA_UndoBuffer = (STRINGA_Dummy+$0003);
  64. def STRINGA_WorkBuffer = (STRINGA_Dummy+$0004);
  65. def STRINGA_BufferPos = (STRINGA_Dummy+$0005);
  66. def STRINGA_DispPos = (STRINGA_Dummy+$0006);
  67. def STRINGA_AltKeyMap = (STRINGA_Dummy+$0007);
  68. def STRINGA_Font = (STRINGA_Dummy+$0008);
  69. def STRINGA_Pens = (STRINGA_Dummy+$0009);
  70. def STRINGA_ActivePens = (STRINGA_Dummy+$000a);
  71. def STRINGA_EditHook = (STRINGA_Dummy+$000b);
  72. def STRINGA_EditModes = (STRINGA_Dummy+$000c);
  73.  
  74. def STRINGA_ReplaceMode = (STRINGA_Dummy+$000d);
  75. def STRINGA_FixedFieldMode = (STRINGA_Dummy+$000e);
  76. def STRINGA_NoFilterMode = (STRINGA_Dummy+$000f);
  77. def STRINGA_Justification = (STRINGA_Dummy+$0010);
  78. def STRINGA_LongVal = (STRINGA_Dummy+$0011);
  79. def STRINGA_TextVal = (STRINGA_Dummy+$0012);
  80. def STRINGA_ExitHelp = (STRINGA_Dummy+$0013);
  81.  
  82. def SG_DEFAULTMAXCHARS = (128);
  83.  
  84. def LAYOUTA_Dummy = (TAG_USER+$38000);
  85.  
  86. def LAYOUTA_LayoutObj = (LAYOUTA_Dummy+$0001);
  87. def LAYOUTA_Spacing = (LAYOUTA_Dummy+$0002);
  88. def LAYOUTA_Orientation = (LAYOUTA_Dummy+$0003);
  89.  
  90. def LORIENT_NONE = 0;
  91. def LORIENT_HORIZ = 1;
  92. def LORIENT_VERT = 2;
  93.  
  94. def GM_Dummy = (-1);
  95. def GM_HITTEST = (0);
  96. def GM_RENDER = (1);
  97. def GM_GOACTIVE = (2);
  98. def GM_HANDLEINPUT = (3);
  99. def GM_GOINACTIVE = (4);
  100. def GM_HELPTEST = (5);
  101. def GM_LAYOUT = (6);
  102.  
  103. struct gpHitTest is
  104.   MethodID:ulong;
  105.   gpht_GInfo:ulong;
  106.  
  107.   gpht_Mouse:struct is
  108.     X:word;
  109.     Y:word;
  110.   ;
  111. ;
  112.  
  113. def GMR_GADGETHIT = ($00000004);
  114.  
  115. def GMR_NOHELPHIT = ($00000000);
  116. def GMR_HELPHIT = ($ffffffff);
  117. def GMR_HELPCODE = ($00010000);
  118.  
  119. struct gpRender is
  120.   MethodID:ulong;
  121.   gpr_GInfo:ulong;
  122.   gpr_RPort:ulong;
  123.   gpr_Redraw:long;
  124. ;
  125.  
  126. def GREDRAW_UPDATE = (2);
  127. def GREDRAW_REDRAW = (1);
  128. def GREDRAW_TOGGLE = (0);
  129.  
  130. struct gpInput is
  131.   MethodID:ulong;
  132.   gpi_GInfo:ulong;
  133.   gpi_IEvent:ulong;
  134.   gpi_Termination:ulong;
  135.  
  136.   gpi_Mouse:struct is
  137.     X:word;
  138.     Y:word;
  139.   ;
  140.   gpi_TabletData:ulong;
  141. ;
  142.  
  143. def GMR_MEACTIVE = (0);
  144. def GMR_NOREUSE = (1<<1);
  145. def GMR_REUSE = (1<<2);
  146. def GMR_VERIFY = (1<<3);
  147.  
  148. def GMR_NEXTACTIVE = (1<<4);
  149. def GMR_PREVACTIVE = (1<<5);
  150.  
  151. struct gpGoInactive is
  152.   MethodID:ulong;
  153.   gpgi_GInfo:ulong;
  154.   gpgi_Abort:ulong;
  155. ;
  156.  
  157. struct gpLayout is
  158.   MethodID:ulong;
  159.   gpl_GInfo:ulong;
  160.   gpl_Initial:ulong;
  161. ;
  162.  
  163.